<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Rectangle Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('struct_vect_sharp_1_1_rectangle.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="struct_vect_sharp_1_1_rectangle-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Rectangle Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a rectangle.   
 <a href="struct_vect_sharp_1_1_rectangle.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a21961d85b4f730fb4a70c7b39069c42a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a21961d85b4f730fb4a70c7b39069c42a">IsNaN</a> ()</td></tr>
<tr class="memdesc:a21961d85b4f730fb4a70c7b39069c42a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the rectangle is equivalent to <a class="el" href="struct_vect_sharp_1_1_rectangle.html#a368e9fb1b22d16faa602320a10fdaf8e" title="A rectangle whose dimensions are all double.NaN.">Rectangle.NaN</a>.   <a href="struct_vect_sharp_1_1_rectangle.html#a21961d85b4f730fb4a70c7b39069c42a">More...</a><br /></td></tr>
<tr class="separator:a21961d85b4f730fb4a70c7b39069c42a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfa632e42eb6ce86edb91bb580878ea8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#abfa632e42eb6ce86edb91bb580878ea8">Rectangle</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> location, <a class="el" href="struct_vect_sharp_1_1_size.html">Size</a> size)</td></tr>
<tr class="memdesc:abfa632e42eb6ce86edb91bb580878ea8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> given its top-left corner and its size.   <a href="struct_vect_sharp_1_1_rectangle.html#abfa632e42eb6ce86edb91bb580878ea8">More...</a><br /></td></tr>
<tr class="separator:abfa632e42eb6ce86edb91bb580878ea8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a227ecc9babb8ae8cc6ab34232a1fa3a0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a227ecc9babb8ae8cc6ab34232a1fa3a0">Rectangle</a> (double x, double y, double width, double height)</td></tr>
<tr class="memdesc:a227ecc9babb8ae8cc6ab34232a1fa3a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> given its top-left corner and its size.   <a href="struct_vect_sharp_1_1_rectangle.html#a227ecc9babb8ae8cc6ab34232a1fa3a0">More...</a><br /></td></tr>
<tr class="separator:a227ecc9babb8ae8cc6ab34232a1fa3a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6be6fe522e182384acb7ad26565168d7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a6be6fe522e182384acb7ad26565168d7">Rectangle</a> (<a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> topLeft, <a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> bottomRight)</td></tr>
<tr class="memdesc:a6be6fe522e182384acb7ad26565168d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> given its top-left corner and its bottom-right corner.   <a href="struct_vect_sharp_1_1_rectangle.html#a6be6fe522e182384acb7ad26565168d7">More...</a><br /></td></tr>
<tr class="separator:a6be6fe522e182384acb7ad26565168d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a2b7fa6b87261efb6b93a2ff98c4aeff1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a2b7fa6b87261efb6b93a2ff98c4aeff1">Union</a> (<a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> rectangle1, <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> rectangle2)</td></tr>
<tr class="memdesc:a2b7fa6b87261efb6b93a2ff98c4aeff1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the rectangular bounds of the union of two <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.   <a href="struct_vect_sharp_1_1_rectangle.html#a2b7fa6b87261efb6b93a2ff98c4aeff1">More...</a><br /></td></tr>
<tr class="separator:a2b7fa6b87261efb6b93a2ff98c4aeff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c85c805dfe62496d7fcdbd6d600b15e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a2c85c805dfe62496d7fcdbd6d600b15e">Intersection</a> (<a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> rectangle1, <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> rectangle2)</td></tr>
<tr class="memdesc:a2c85c805dfe62496d7fcdbd6d600b15e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the intersection of two <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.   <a href="struct_vect_sharp_1_1_rectangle.html#a2c85c805dfe62496d7fcdbd6d600b15e">More...</a><br /></td></tr>
<tr class="separator:a2c85c805dfe62496d7fcdbd6d600b15e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06f1af2fe2b9bc861288c75055cddc9f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a06f1af2fe2b9bc861288c75055cddc9f">Union</a> (IEnumerable&lt; <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> &gt; rectangles)</td></tr>
<tr class="memdesc:a06f1af2fe2b9bc861288c75055cddc9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the rectangular bounds of the union of multiple <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.   <a href="struct_vect_sharp_1_1_rectangle.html#a06f1af2fe2b9bc861288c75055cddc9f">More...</a><br /></td></tr>
<tr class="separator:a06f1af2fe2b9bc861288c75055cddc9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a293eba93d6afb9eff28baacd619821fe"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a293eba93d6afb9eff28baacd619821fe">Union</a> (params <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>[] rectangles)</td></tr>
<tr class="memdesc:a293eba93d6afb9eff28baacd619821fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the rectangular bounds of the union of multiple <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.   <a href="struct_vect_sharp_1_1_rectangle.html#a293eba93d6afb9eff28baacd619821fe">More...</a><br /></td></tr>
<tr class="separator:a293eba93d6afb9eff28baacd619821fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a70c8f442271179e7cdd148435c132ded"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a70c8f442271179e7cdd148435c132ded">Location</a></td></tr>
<tr class="memdesc:a70c8f442271179e7cdd148435c132ded"><td class="mdescLeft">&#160;</td><td class="mdescRight">The top-left corner of the rectangle.   <a href="struct_vect_sharp_1_1_rectangle.html#a70c8f442271179e7cdd148435c132ded">More...</a><br /></td></tr>
<tr class="separator:a70c8f442271179e7cdd148435c132ded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf01bdde72ae88f4c3928fdb71313c1a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_size.html">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#adf01bdde72ae88f4c3928fdb71313c1a">Size</a></td></tr>
<tr class="memdesc:adf01bdde72ae88f4c3928fdb71313c1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The size of the rectangle.   <a href="struct_vect_sharp_1_1_rectangle.html#adf01bdde72ae88f4c3928fdb71313c1a">More...</a><br /></td></tr>
<tr class="separator:adf01bdde72ae88f4c3928fdb71313c1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a368e9fb1b22d16faa602320a10fdaf8e"><td class="memItemLeft" align="right" valign="top">static readonly <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a368e9fb1b22d16faa602320a10fdaf8e">NaN</a> = new <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>(double.NaN, double.NaN, double.NaN, double.NaN)</td></tr>
<tr class="memdesc:a368e9fb1b22d16faa602320a10fdaf8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">A rectangle whose dimensions are all double.NaN.   <a href="struct_vect_sharp_1_1_rectangle.html#a368e9fb1b22d16faa602320a10fdaf8e">More...</a><br /></td></tr>
<tr class="separator:a368e9fb1b22d16faa602320a10fdaf8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a6c8b3ca8a35e8e0b7dfa27e7e288fa8e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vect_sharp_1_1_rectangle.html#a6c8b3ca8a35e8e0b7dfa27e7e288fa8e">Centre</a><code> [get]</code></td></tr>
<tr class="memdesc:a6c8b3ca8a35e8e0b7dfa27e7e288fa8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The centre of the rectangle.   <a href="struct_vect_sharp_1_1_rectangle.html#a6c8b3ca8a35e8e0b7dfa27e7e288fa8e">More...</a><br /></td></tr>
<tr class="separator:a6c8b3ca8a35e8e0b7dfa27e7e288fa8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00301">301</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="abfa632e42eb6ce86edb91bb580878ea8" name="abfa632e42eb6ce86edb91bb580878ea8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfa632e42eb6ce86edb91bb580878ea8">&#9670;&#160;</a></span>Rectangle() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Rectangle.Rectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>location</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_size.html">Size</a>&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> given its top-left corner and its size.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">location</td><td>The top-left corner of the rectangle.</td></tr>
    <tr><td class="paramname">size</td><td>The size of the rectangle.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00337">337</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a227ecc9babb8ae8cc6ab34232a1fa3a0" name="a227ecc9babb8ae8cc6ab34232a1fa3a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a227ecc9babb8ae8cc6ab34232a1fa3a0">&#9670;&#160;</a></span>Rectangle() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Rectangle.Rectangle </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> given its top-left corner and its size.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>The horizontal coordinate of the top-left corner of the rectangle.</td></tr>
    <tr><td class="paramname">y</td><td>The vertical coordinate of the top-left corner of the rectangle.</td></tr>
    <tr><td class="paramname">width</td><td>The width of the rectangle.</td></tr>
    <tr><td class="paramname">height</td><td>The height of the rectangle.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00350">350</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a6be6fe522e182384acb7ad26565168d7" name="a6be6fe522e182384acb7ad26565168d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6be6fe522e182384acb7ad26565168d7">&#9670;&#160;</a></span>Rectangle() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VectSharp.Rectangle.Rectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>topLeft</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a>&#160;</td>
          <td class="paramname"><em>bottomRight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> given its top-left corner and its bottom-right corner.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">topLeft</td><td>The top-left corner of the rectangle.</td></tr>
    <tr><td class="paramname">bottomRight</td><td>The bottom-right corner of the rectangle.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00361">361</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2c85c805dfe62496d7fcdbd6d600b15e" name="a2c85c805dfe62496d7fcdbd6d600b15e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c85c805dfe62496d7fcdbd6d600b15e">&#9670;&#160;</a></span>Intersection()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> VectSharp.Rectangle.Intersection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>rectangle1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>rectangle2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the intersection of two <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectangle1</td><td>The first <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.</td></tr>
    <tr><td class="paramname">rectangle2</td><td>The second <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The rectangle corresponding to the intersection of <em>rectangle1</em>  and <em>rectangle2</em> , or <a class="el" href="struct_vect_sharp_1_1_rectangle.html#a368e9fb1b22d16faa602320a10fdaf8e" title="A rectangle whose dimensions are all double.NaN.">Rectangle.NaN</a> if the intersection is empty.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00406">406</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a21961d85b4f730fb4a70c7b39069c42a" name="a21961d85b4f730fb4a70c7b39069c42a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21961d85b4f730fb4a70c7b39069c42a">&#9670;&#160;</a></span>IsNaN()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool VectSharp.Rectangle.IsNaN </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the rectangle is equivalent to <a class="el" href="struct_vect_sharp_1_1_rectangle.html#a368e9fb1b22d16faa602320a10fdaf8e" title="A rectangle whose dimensions are all double.NaN.">Rectangle.NaN</a>.  </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if all the dimensions of the rectangle are double.NaN, <code>false</code> otherwise.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00312">312</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a06f1af2fe2b9bc861288c75055cddc9f" name="a06f1af2fe2b9bc861288c75055cddc9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06f1af2fe2b9bc861288c75055cddc9f">&#9670;&#160;</a></span>Union() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> VectSharp.Rectangle.Union </td>
          <td>(</td>
          <td class="paramtype">IEnumerable&lt; <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> &gt;&#160;</td>
          <td class="paramname"><em>rectangles</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the rectangular bounds of the union of multiple <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectangles</td><td>The <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s whose union will be computed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The smallest <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> containing all the <em>rectangles</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00430">430</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a293eba93d6afb9eff28baacd619821fe" name="a293eba93d6afb9eff28baacd619821fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a293eba93d6afb9eff28baacd619821fe">&#9670;&#160;</a></span>Union() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> VectSharp.Rectangle.Union </td>
          <td>(</td>
          <td class="paramtype">params <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>[]&#160;</td>
          <td class="paramname"><em>rectangles</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the rectangular bounds of the union of multiple <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectangles</td><td>The <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s whose union will be computed.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The smallest <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> containing all the <em>rectangles</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00463">463</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a2b7fa6b87261efb6b93a2ff98c4aeff1" name="a2b7fa6b87261efb6b93a2ff98c4aeff1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b7fa6b87261efb6b93a2ff98c4aeff1">&#9670;&#160;</a></span>Union() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> VectSharp.Rectangle.Union </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>rectangle1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>&#160;</td>
          <td class="paramname"><em>rectangle2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the rectangular bounds of the union of two <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>s.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rectangle1</td><td>The first <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.</td></tr>
    <tr><td class="paramname">rectangle2</td><td>The second <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The smallest <a class="el" href="struct_vect_sharp_1_1_rectangle.html" title="Represents a rectangle.">Rectangle</a> containing both <em>rectangle1</em>  and <em>rectangle2</em> .</dd></dl>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00373">373</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a70c8f442271179e7cdd148435c132ded" name="a70c8f442271179e7cdd148435c132ded"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70c8f442271179e7cdd148435c132ded">&#9670;&#160;</a></span>Location</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> VectSharp.Rectangle.Location</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The top-left corner of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00320">320</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="a368e9fb1b22d16faa602320a10fdaf8e" name="a368e9fb1b22d16faa602320a10fdaf8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a368e9fb1b22d16faa602320a10fdaf8e">&#9670;&#160;</a></span>NaN</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">readonly <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a> VectSharp.Rectangle.NaN = new <a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a>(double.NaN, double.NaN, double.NaN, double.NaN)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A rectangle whose dimensions are all double.NaN.  </p>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00306">306</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<a id="adf01bdde72ae88f4c3928fdb71313c1a" name="adf01bdde72ae88f4c3928fdb71313c1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf01bdde72ae88f4c3928fdb71313c1a">&#9670;&#160;</a></span>Size</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_size.html">Size</a> VectSharp.Rectangle.Size</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The size of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00325">325</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a6c8b3ca8a35e8e0b7dfa27e7e288fa8e" name="a6c8b3ca8a35e8e0b7dfa27e7e288fa8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c8b3ca8a35e8e0b7dfa27e7e288fa8e">&#9670;&#160;</a></span>Centre</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_vect_sharp_1_1_point.html">Point</a> VectSharp.Rectangle.Centre</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The centre of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_point_8cs_source.html#l00330">330</a> of file <a class="el" href="_point_8cs_source.html">Point.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>VectSharp/<a class="el" href="_point_8cs_source.html">Point.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="struct_vect_sharp_1_1_rectangle.html">Rectangle</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
